import request from '@/utils/request'

// 查询供应商管理列表
export function listSupplierMasterData(query) {
  return request({
    url: '/basicData/supplierMasterData/list',
    method: 'get',
    params: query
  })
}

// 查询供应商管理详细
export function getSupplierMasterData(supplierId) {
  return request({
    url: '/basicData/supplierMasterData/' + supplierId,
    method: 'get'
  })
}

// 新增供应商管理
export function addSupplierMasterData(data) {
  return request({
    url: '/basicData/supplierMasterData',
    method: 'post',
    data: data
  })
}

// 修改供应商管理
export function updateSupplierMasterData(data) {
  return request({
    url: '/basicData/supplierMasterData',
    method: 'put',
    data: data
  })
}

// 删除供应商管理
export function delSupplierMasterData(supplierId) {
  return request({
    url: '/basicData/supplierMasterData/' + supplierId,
    method: 'delete'
  })
}
